#include "ZigbusIsAnalogicItem.h"

ZigbusIsAnalogicItem::ZigbusIsAnalogicItem()
    : ZigbusItem(-1, IS_ANALOGIC_ITEM_SIZE)
{

}

ZigbusIsAnalogicItem::ZigbusIsAnalogicItem(int value)
    : ZigbusItem(value, IS_ANALOGIC_ITEM_SIZE)
{

}

ZigbusIsAnalogicItem::ZigbusIsAnalogicItem(const ZigbusIsAnalogicItem &other)
    : ZigbusItem(other)
{

}

QString ZigbusIsAnalogicItem::text() const
{
    QString rslt;
    if(getValue() == 0) {
        rslt = "numeric";
    }
    else {
        rslt = "analogic";
    }
    return rslt;
}
